import request from '@/utils/request'

// 查询OMS收货确认列表
export function listReceiptbill(query) {
  return request({
    url: '/settlementCenter/basebill/receiptbill/list',
    method: 'get',
    params: query
  })
}

// 查询OMS收货确认详细
export function getReceiptbill(id) {
  return request({
    url: '/settlementCenter/basebill/receiptbill/' + id,
    method: 'get'
  })
}

// 新增OMS收货确认
export function addReceiptbill(data) {
  return request({
    url: '/settlementCenter/basebill/receiptbill',
    method: 'post',
    data: data
  })
}

// 修改OMS收货确认
export function updateReceiptbill(data) {
  return request({
    url: '/settlementCenter/basebill/receiptbill',
    method: 'put',
    data: data
  })
}

// 删除OMS收货确认
export function delReceiptbill(id) {
  return request({
    url: '/settlementCenter/basebill/receiptbill/' + id,
    method: 'delete'
  })
}
